package com.huang.dao;

import com.huang.pojo.*;

import java.util.List;

public interface TeacherMapper {

    //教师登陆
    Teacher loginTeacher(Teacher teacher);

    //教师完善信息
    int improveTeacherMsg(Teacher teacher);

    //教师发布活动
    int releaseActivity(Activity activity);

    //教师查询活动
    List<Activity> queryAllActivity(Teacher teacher);

    //通过活动编号号查询活动
    Activity queryActivityByNo(String activityNo);

    //修改活动内容
    int alterActivity(Activity activity);

    //删除活动
    int deleteActivity(Activity activity);

    //查看参加活动的同学
    List<ActivityPeople> queryActivityStudent(Activity activity);

    //查看参加活动的同学2
    List<ActivityPeople> queryActivityStudent2(Activity activity);

    //根据No删除某个参加活动的学生
    int removeActivityStudent(ActivityPeople activityPeople);

    //老师查看申请
    List<ApplyScore> viewApply(ApplyScore applyScore);

    //老师同意申请
    int approveApply(Message message);

    //通过老师工号查找老师信息
    Teacher findTeacherByNo(Teacher teacher);

    //老师同意申请后更改学生申请表的状态
    int updateStatue(ApplyScore applyScore);

    //老师查看已经审核通过的活动
    List<ApplyScore> viewPassApply(Teacher teacher);

    //老师查看通过审核活动详情(未使用)
    Message viewApplyMsg(ApplyScore applyScore);

    //查看学生第几次申请
    List<Message> applyCount(Message message);

    //查看未通过审核的活动
    List<ApplyScore> viewUnPassApply(Teacher teacher);

    //老师审核状态变更
    int updateAnswerStatus(ApplyScore applyScore);

    //老师改变活动状态
    int changeActivityStatus(Activity activity);

    //老师通过邮件激活自己的账号
    int changeTeacherStatus(Teacher teacher);

    //根据老师的Code找老师
    Teacher findTeacherByCode(Teacher teacher);

    //老师对公告进行反馈
    int feedBackTea(FeedBack feedBack);

    //老师审核通过后为学生加分
    int addStuScore(StudentScore studentScore);

    //教师忘记密码
    int changePwdTea(Teacher teacher);

    //教师为活动增加活动详情
    int addActivityDetail(ActivityDescription activityDescription);

    //教师根据活动编号为活动添加海报
    int addActivityPhotoByNo(ActivityDescription activityDescription);

    //教师根据活动编号为活动添加附件
    int addActivityAnnexByNo(ActivityDescription activityDescription);

    //根据活动编号找出对应的活动详情
    ActivityDescription findActivityDescriptionByNo(Activity activity);

    //教师查看活动日志
    List<UserDiary> teaViewSelfDiary(Teacher teacher);

}
